﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CmpEdu
{
    public partial class FormMdi : Form
    {
        /// <summary>
        /// 建立Mdi窗体，并且设计相应的default信息
        /// </summary>
        public FormMdi()
        {
            InitializeComponent();
            this.Text = "C#程序设计教程";
            this.IsMdiContainer = true;
        }

        /// <summary>
        /// FormTest4_2的练习
        /// 方法的重载技术实现
        /// 子窗体链接到当前的MDI窗体
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Test4_2_Click(object sender, EventArgs e)
        {
            FrmT4_2 t42 = new FrmT4_2()
            {
                MdiParent = this
            };
            t42.Show();
        }

        private void test54ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmT5_4 t54 = new FrmT5_4()
            {
                MdiParent = this
            };
            t54.Show();
        }

        private void test44ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmT4_4 t44 = new FrmT4_4()
            {
                MdiParent = this
            };
            t44.Show();
        }

        private void test102ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmT10_2Login t102 = new FrmT10_2Login()
            {
                MdiParent = this
            };
            t102.Show();
        }
    }
}
